#include <stdio.h>

int main (int argc, char** argv){
    char buf[80];
    char* ptr = buf;
    char c;
    while( c = getchar() != '0'){
        *ptr = c;
        ptr++;
    }
    *ptr = '\0';
    printf("%s", buf);
    return 0;
}
